//
//  M4DataNullView.swift
//  M4
//
//  Created by YuChuang on 2024/8/21.
//

import UIKit

class M4DataNullView: UIView {
    
    @IBOutlet weak var M4NullDescribe: UILabel!
    
    @IBOutlet weak var M4NullButton: UIButton!
    
    var M4NullButtonBlock: (() -> Void)?
    
    override func awakeFromNib() {
        
    }
    
    func M4NullUpdateUI(describe: String, buttonTitle: String) {
        M4NullDescribe.text = describe
        M4NullButton.setTitle(buttonTitle, for: .normal)
    }
    
    @IBAction func M4NullButtonClick(_ sender: UIButton) {
        M4NullButtonBlock?()
        sender.M4EventUnavailable = false
    }
    

}
